package Code.ConstructionMethod;

public class User {
    //属性
   private String name;
   private String password;
   private String emai;
   private String gender;
   private int age;

   //构造方法
    public User(){
        //无参构造
    }

    public User(String name,String password,String emai,String gender,int age){
        //有参构造
        this.name = name;
        this.password = password;
        this.emai = emai;
        this.gender = gender;
        this.age = age;
    }

    //set/get方法
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setEmai(String emai) {
        this.emai = emai;
    }

    public String getEmai() {
        return emai;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getGender() {
        return gender;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return age;
    }
}
